import request from '@/utils/request'

// 查询问题树信息列表
export function listQuestionTree(query) {
  return request({
    url: '/system/questionTree/list',
    method: 'get',
    params: query
  })
}

// 查询问题树信息详细
export function getQuestionTree(questionId) {
  return request({
    url: '/system/questionTree/' + questionId,
    method: 'get'
  })
}

// 新增问题树信息
export function addQuestionTree(data) {
  return request({
    url: '/system/questionTree',
    method: 'post',
    data: data
  })
}

// 修改问题树信息
export function updateQuestionTree(data) {
  return request({
    url: '/system/questionTree',
    method: 'put',
    data: data
  })
}

// 删除问题树信息
export function delQuestionTree(questionId) {
  return request({
    url: '/system/questionTree/' + questionId,
    method: 'delete'
  })
}
